package com.hry.spring.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class Teacher {


	Student student;

	@Autowired
	public void setStudent(Student student) {
		this.student = student;
	}

	public Teacher() {
		System.out.println("-----------Teacher创建-----------");
	}
}
